package com.mzj.saas.mservice.propertybill.repository;

import com.mzj.saas.mservice.propertybill.entity.EstateExpenseRent;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.List;

public interface EstateExpenseRentRepository extends PagingAndSortingRepository<EstateExpenseRent, String>, JpaSpecificationExecutor<EstateExpenseRent>, JpaRepository<EstateExpenseRent,String> {

    List<EstateExpenseRent> findByHouseIdAndChargeTypeAndEnableStatusAndStatus(String houseId, Integer chargeType, Integer enableStatus, Integer status);

    List<EstateExpenseRent> findByHouseIdAndChargeTypeAndStatus(String houseId, Integer chargeType, Integer status);

    List<EstateExpenseRent> findByHouseIdAndEnableStatusAndStatus(String houseId , Integer enableStatus, Integer status);
}
